<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Tetris Game: CGameFiguresFactory Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Tetris Game
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Test game project created via Irrlicht and Qt</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('class_c_game_figures_factory.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">CGameFiguresFactory Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="CGameFiguresFactory" -->
<p><code>#include &lt;<a class="el" href="_c_game_figures_factory_8h_source.html">CGameFiguresFactory.h</a>&gt;</code></p>

<p><a href="class_c_game_figures_factory-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_game_figures_factory.html#a1d404824269e6dbfbc9791fbdadda32b">CGameFiguresFactory</a> (irr::IRandomizer *randomizer, irr::scene::ISceneNode *figuresParent, irr::scene::ISceneManager *sceneManager, irr::io::IFileSystem *fileSystem)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_game_figures_factory.html#abbbe2affc86b6d08266f7f7077f067ff">~CGameFiguresFactory</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_c_figure.html">CFigure</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_game_figures_factory.html#ac29ca794a7d221b8e32b387391f17ec3">createNewFigure</a> (EGF_FIGURE_TYPE figureType, irr::f32 figureSize, irr::video::SColor colour)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_c_figure.html">CFigure</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_game_figures_factory.html#a5b2cb6e189d1f6da55f7e1ec6c1fc6ee">createNewFigure</a> (EGF_FIGURE_TYPE figureType, irr::f32 figureSize, bool randomColour=false)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">irr::scene::ISceneManager *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_game_figures_factory.html#aeceabacbdca0b1acbb27902d6765c374">getSceneManager</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">irr::scene::ISceneNode *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_game_figures_factory.html#a7bdf5e4cbb20a6d471f0ebee49b1c990">getFiguresParentNode</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">irr::io::IFileSystem *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_game_figures_factory.html#aec1fb54964e022724247623df75037af">getFileSystem</a> () const </td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Spawn new figures (no game field interaction), no created figures time live control </p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a1d404824269e6dbfbc9791fbdadda32b"></a><!-- doxytag: member="CGameFiguresFactory::CGameFiguresFactory" ref="a1d404824269e6dbfbc9791fbdadda32b" args="(irr::IRandomizer *randomizer, irr::scene::ISceneNode *figuresParent, irr::scene::ISceneManager *sceneManager, irr::io::IFileSystem *fileSystem)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_game_figures_factory.html#a1d404824269e6dbfbc9791fbdadda32b">CGameFiguresFactory::CGameFiguresFactory</a> </td>
          <td>(</td>
          <td class="paramtype">irr::IRandomizer *&#160;</td>
          <td class="paramname"><em>randomizer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">irr::scene::ISceneNode *&#160;</td>
          <td class="paramname"><em>figuresParent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">irr::scene::ISceneManager *&#160;</td>
          <td class="paramname"><em>sceneManager</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">irr::io::IFileSystem *&#160;</td>
          <td class="paramname"><em>fileSystem</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Constructor</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">randomizer</td><td>- pointer to Irrlicht randomizer, for selecting random figures and colours </td></tr>
    <tr><td class="paramname">figuresParent</td><td>- all figures parent node </td></tr>
    <tr><td class="paramname">sceneManager</td><td>- scene manager of scene </td></tr>
    <tr><td class="paramname">fileSystem</td><td>- Irrlicht file system </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="abbbe2affc86b6d08266f7f7077f067ff"></a><!-- doxytag: member="CGameFiguresFactory::~CGameFiguresFactory" ref="abbbe2affc86b6d08266f7f7077f067ff" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_game_figures_factory.html#abbbe2affc86b6d08266f7f7077f067ff">CGameFiguresFactory::~CGameFiguresFactory</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Destructor, not implemented </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ac29ca794a7d221b8e32b387391f17ec3"></a><!-- doxytag: member="CGameFiguresFactory::createNewFigure" ref="ac29ca794a7d221b8e32b387391f17ec3" args="(EGF_FIGURE_TYPE figureType, irr::f32 figureSize, irr::video::SColor colour)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_figure.html">CFigure</a> * <a class="el" href="class_c_game_figures_factory.html#ac29ca794a7d221b8e32b387391f17ec3">CGameFiguresFactory::createNewFigure</a> </td>
          <td>(</td>
          <td class="paramtype">EGF_FIGURE_TYPE&#160;</td>
          <td class="paramname"><em>figureType</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">irr::f32&#160;</td>
          <td class="paramname"><em>figureSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">irr::video::SColor&#160;</td>
          <td class="paramname"><em>colour</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Creates new figure</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">figureType</td><td>- game field figure's elemental block type </td></tr>
    <tr><td class="paramname">figureSize</td><td>- figure size </td></tr>
    <tr><td class="paramname">colour</td><td>- figure colour </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>pointer to created figure, NULL if creation failed </dd></dl>

</div>
</div>
<a class="anchor" id="a5b2cb6e189d1f6da55f7e1ec6c1fc6ee"></a><!-- doxytag: member="CGameFiguresFactory::createNewFigure" ref="a5b2cb6e189d1f6da55f7e1ec6c1fc6ee" args="(EGF_FIGURE_TYPE figureType, irr::f32 figureSize, bool randomColour=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_figure.html">CFigure</a> * <a class="el" href="class_c_game_figures_factory.html#ac29ca794a7d221b8e32b387391f17ec3">CGameFiguresFactory::createNewFigure</a> </td>
          <td>(</td>
          <td class="paramtype">EGF_FIGURE_TYPE&#160;</td>
          <td class="paramname"><em>figureType</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">irr::f32&#160;</td>
          <td class="paramname"><em>figureSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>randomColour</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Created new figure</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">figureType</td><td>- game field figure's elemental block type </td></tr>
    <tr><td class="paramname">figureSize</td><td>- figure size </td></tr>
    <tr><td class="paramname">randomColour</td><td>- if set to true, factory creates random colour with randomizer and attach it to figure </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>pointer to created figure, NULL if creation failed </dd></dl>

</div>
</div>
<a class="anchor" id="a7bdf5e4cbb20a6d471f0ebee49b1c990"></a><!-- doxytag: member="CGameFiguresFactory::getFiguresParentNode" ref="a7bdf5e4cbb20a6d471f0ebee49b1c990" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">irr::scene::ISceneNode * <a class="el" href="class_c_game_figures_factory.html#a7bdf5e4cbb20a6d471f0ebee49b1c990">CGameFiguresFactory::getFiguresParentNode</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Getter</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>pointer to all figures parent node </dd></dl>

</div>
</div>
<a class="anchor" id="aec1fb54964e022724247623df75037af"></a><!-- doxytag: member="CGameFiguresFactory::getFileSystem" ref="aec1fb54964e022724247623df75037af" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">irr::io::IFileSystem * <a class="el" href="class_c_game_figures_factory.html#aec1fb54964e022724247623df75037af">CGameFiguresFactory::getFileSystem</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Getter</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>pointer to Irrlicht file system </dd></dl>

</div>
</div>
<a class="anchor" id="aeceabacbdca0b1acbb27902d6765c374"></a><!-- doxytag: member="CGameFiguresFactory::getSceneManager" ref="aeceabacbdca0b1acbb27902d6765c374" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">irr::scene::ISceneManager * <a class="el" href="class_c_game_figures_factory.html#aeceabacbdca0b1acbb27902d6765c374">CGameFiguresFactory::getSceneManager</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Getter</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>pointer to scene manager </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>/home/hokan/NetBeansProjects/TetrisGame/headers/<a class="el" href="_c_game_figures_factory_8h_source.html">CGameFiguresFactory.h</a></li>
<li>/home/hokan/NetBeansProjects/TetrisGame/sources/CGameFiguresFactory.cpp</li>
</ul>
</div><!-- contents -->
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="class_c_game_figures_factory.html">CGameFiguresFactory</a>      </li>

    <li class="footer">Generated on Sun Jul 6 2014 19:35:11 for Tetris Game by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
